<div class="dd_licai" id="dd_licai">

      <div class="dd_licai_tab">
        <ul>
         <li class="current" id="paiming1" onmouseover="paiming(1,2)" style=" border-right:1px solid #dcdcdc;">
         本月理财排名</li>

         <li id="paiming2"  onmouseover="paiming(2,1)">累计理财排名</li>
        </ul>
      </div>
      <div class="dd_licai_content" id="paiming_list1">
        <div style=""><span class="fl span1">排名</span >
	        <span class="fl span2">用户名</span>
	        <span class="span3">投资金额</span></div>
	         <div id="zxtz_pmd1" style="height: 180px; overflow:hidden">
       <ul >

        <?php $index = 1; foreach($month_rank as $month){?>
	        <li>
	        	<span <?php if($index > 3){?>class="fl span1 rank-num gray"<?php }else{?>class="fl span1 rank-num org"<?php }?>><?php echo $index;?></span>
		        <span class="fl span2"><?php echo strdisplay_start($month['username'], 2);?></span>
		        <span class="span3">￥<?php echo intval($month['money']);?></span>
	        </li>
       <?php $index++;}?>
       </ul>

        </div>
        <script type="text/javascript">
		function AutoScroll(obj) {
			$(obj).find("ul:first").animate({
		   		paddingTop: "-28px"
		    }, 1000, function() {
		    	$(this).css({ paddingTop: "0px" }).find("li:first").appendTo(this);
		    });
		    }
		$(document).ready(function() {
			var myar = setInterval('AutoScroll("#zxtz_pmd1")', 1500)
		    $("#scrollDiv").hover(function() {
		        clearInterval(myar);
		    }, function(){
		            myar = setInterval('AutoScroll(#zxtz_pmd1)', 1500)
		    }); //当鼠标放上去的时候，滚动停止，鼠标离开的时候滚动开始
		});
		</script>


      </div>

      <div class="dd_licai_content" id="paiming_list2" style="display:none;">

        <div style=""><span class="fl span1">排名</span >
	        <span class="fl span2">用户名</span>
	        <span class="span3">投资金额</span></div>
	        <div id="zxtz_pmd2" style="height: 180px; overflow:hidden">
       <ul>
         <?php $tindex = 1; foreach($total_rank as $total){?>
         	<li>
	        	<span <?php if($tindex > 3){?>class="fl span1 rank-num gray"<?php }else{?>class="fl span1 rank-num org"<?php }?>><?php echo $tindex;?></span>
		        <span class="fl span2"><?php echo strdisplay_start($total['username'], 2);?></span>
		        <span class="span3">￥<?php echo intval($total['money']);?></span>
	        </li>
          <?php $tindex++;}?>
       </ul>

       </div>
      </div>

       <script type="text/javascript">

		$(document).ready(function() {
			var myar = setInterval('AutoScroll("#zxtz_pmd2")', 1500)
		    $("#scrollDiv").hover(function() {
		        clearInterval(myar);
		    }, function(){
		            myar = setInterval('AutoScroll(#zxtz_pmd2)', 1500)
		    }); //当鼠标放上去的时候，滚动停止，鼠标离开的时候滚动开始
		});
		</script>
     </div>


      <div class="dd_index_tuiguang">

        <div class="dd_index_tuiguang_tab">
        <ul>
         <li class="current" id="paiming3" onmouseover="paiming(3,4)" style="border-right:1px solid #dcdcdc;">本月推广风云榜</li>

         <li id="paiming4" onmouseover="paiming(4,3)">累计推广风云榜</li>
        </ul>
      </div>
      <div class="dd_index_tuiguang_content" id="paiming_list3" style="height:220px;" >
       <ul>
        <li style="border:none;">
        <span class="fl span1">排名</span >
        <span class="fl span2">用户名</span>
        <span class="span3">推广人数</span></li>
         <?php $mindex = 1; foreach($month_popularize as $m){?>
         	<li>
	        	<span <?php if($mindex > 3){?>class="fl span1 rank-num gray"<?php }else{?>class="fl span1 rank-num org"<?php }?>><?php echo $mindex;?></span>
		        <span class="fl span2"><?php echo strdisplay_start($m['username'], 2);?></span>
		        <span class="span3"><?php echo $m['usernum'];?>人</span>
	        </li>
          <?php $mindex++;}?>
       </ul>
      </div>




      <div class="dd_index_tuiguang_content" id="paiming_list4" style="display:none; height:220px;">
       <ul>
        <li style="border:none;">
        <span class="fl span1">排名</span >
        <span class="fl span2">用户名</span>
        <span class="span3">推广奖励</span></li>

         <?php $pindex = 1; foreach($total_popularize as $t){?>
         	<li>
	        	<span <?php if($pindex > 3){?>class="fl span1 rank-num gray"<?php }else{?>class="fl span1 rank-num org"<?php }?>><?php echo $pindex;?></span>
		        <span class="fl span2"><?php echo strdisplay_start($t['username'], 2);?></span>
		        <span class="span3">￥<?php echo $t['money'];?></span>
	        </li>
          <?php $pindex++;}?>

       </ul>
      </div>
     </div>
    <script src="/static/js/cfctcommon.js"></script>
